#!/bin/bash

# docker容器内启动脚本

gunicorn_cmd='gunicorn -c gunicorn.conf.py'
celery_cmd='celery -A apCelery.celeryApp worker -loglevel=info -Q celery'
celery_beat_cmd='celery -A scheCelery.app beat -loglevel=info'

echo '启动...'
$gunicorn_cmd &
echo 'gunicorn启动完成'
$celery_cmd &
echo 'celery启动完成'
$celery_beat_cmd &
echo '定时任务启动完成'

echo 'finish'
